$.fn.extend({
    rotate: function (rotateCallBack) {
    	var degree = $(this).attr("degree");
        if(degree == null || degree == ''){
        	$(this).attr("degree","90");
        	degree = 90;
        }else{
        	degree = parseFloat(degree) + 90;
        	$(this).attr("degree",degree);
        }
        $(this).css("transform","rotate(" + degree + "deg)");
        if(rotateCallBack){
        	rotateCallBack();
        }
    }
});

function singleRotate() {
    degree = degree + 90 * Math.PI / 180;
    ele.css("transform","rotate("+degree+"deg)");
}